namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;


    [System.SerializableAttribute()]
    [Map("CPR_DATA_CONFIG")]
    public class CPR_DATA_CONFIG : ObjectRow
    {

        public CPR_DATA_CONFIG()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public CPR_DATA_CONFIG(System.Data.DataRow dataRow, ObjectTable parent) :
            base(dataRow, parent)
        {
        }

        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected CPR_DATA_CONFIG(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
            base(info, context)
        {
        }

        [Key("ID", true, true)]
        public decimal ID
        {
            get
            {
                return (System.Decimal)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }

        [Field("MEASUREMENTNAME")]
        public string MEASUREMENTNAME
        {
            get
            {
                return (System.String)GetValue("MEASUREMENTNAME");
            }
            set
            {
                SetValue("MEASUREMENTNAME", value);
            }
        }

        [Field("CODE")]
        public string CODE
        {
            get
            {
                return (System.String)GetValue("CODE");
            }
            set
            {
                SetValue("CODE", value);
            }
        }

       

        [Field("INPUTTYPE")]
        public decimal INPUTTYPE
        {
            get
            {
                return (System.Decimal)GetValue("INPUTTYPE");
            }
            set
            {
                SetValue("INPUTTYPE", value);
            }
        }

        [Field("VALUETYPE")]
        public string VALUETYPE
        {
            get
            {
                return (System.String)GetValue("VALUETYPE");
            }
            set
            {
                SetValue("VALUETYPE", value);
            }
        }

        [Field("INPUT_MINVALUE")]
        public decimal INPUT_MINVALUE
        {
            get
            {
                return (System.Decimal)GetValue("INPUT_MINVALUE");
            }
            set
            {
                SetValue("INPUT_MINVALUE", value);
            }
        }

        [Field("INPUT_MAXVALUE")]
        public decimal INPUT_MAXVALUE
        {
            get
            {
                return (System.Decimal)GetValue("INPUT_MAXVALUE");
            }
            set
            {
                SetValue("INPUT_MAXVALUE", value);
            }
        }

        [Field("INPUT_MAXLENGTH")]
        public decimal INPUT_MAXLENGTH
        {
            get
            {
                return (System.Decimal)GetValue("INPUT_MAXLENGTH");
            }
            set
            {
                SetValue("INPUT_MAXLENGTH", value);
            }
        }

        [Field("ENUM_VALUES")]
        public string ENUM_VALUES
        {
            get
            {
                return (System.String)GetValue("ENUM_VALUES");
            }
            set
            {
                SetValue("ENUM_VALUES", value);
            }
        }

        [Field("ISREQUIRED")]
        public bool ISREQUIRED
        {
            get
            {
                return (System.Boolean)GetValue("ISREQUIRED");
            }
            set
            {
                SetValue("ISREQUIRED", value);
            }
        }

        [Field("ISREVIEW")]
        public bool ISREVIEW
        {
            get
            {
                return (System.Boolean)GetValue("ISREVIEW");
            }
            set
            {
                SetValue("ISREVIEW", value);
            }
        }

        [Field("PICKTYPE")]
        public decimal PICKTYPE
        {
            get
            {
                return (System.Decimal)GetValue("PICKTYPE");
            }
            set
            {
                SetValue("PICKTYPE", value);
            }
        }

       

        [Field("IDENTITY1")]
        public decimal IDENTITY1
        {
            get
            {
                return (System.Decimal)GetValue("IDENTITY1");
            }
            set
            {
                SetValue("IDENTITY1", value);
            }
        }

        [Field("IDENTITY2")]
        public decimal IDENTITY2
        {
            get
            {
                return (System.Decimal)GetValue("IDENTITY2");
            }
            set
            {
                SetValue("IDENTITY2", value);
            }
        }

        [Field("IDENTITY3")]
        public decimal IDENTITY3
        {
            get
            {
                return (System.Decimal)GetValue("IDENTITY3");
            }
            set
            {
                SetValue("IDENTITY3", value);
            }
        }

        [Field("IDENTITY4")]
        public string IDENTITY4
        {
            get
            {
                return (System.String)GetValue("IDENTITY4");
            }
            set
            {
                SetValue("IDENTITY4", value);
            }
        }

        [Field("IDENTITY5")]
        public string IDENTITY5
        {
            get
            {
                return (System.String)GetValue("IDENTITY5");
            }
            set
            {
                SetValue("IDENTITY5", value);
            }
        }

        [Field("IDENTITY6")]
        public string IDENTITY6
        {
            get
            {
                return (System.String)GetValue("IDENTITY6");
            }
            set
            {
                SetValue("IDENTITY6", value);
            }
        }

        [Field("ACTIVE")]
        public bool ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DOMAIN_ID
        {
            get
            {
                return (System.Decimal)GetValue("DOMAIN_ID");
            }
            set
            {
                SetValue("DOMAIN_ID", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public decimal CREATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("CREATE_TIME");
            }
            set
            {
                SetValue("CREATE_TIME", value);
            }
        }
    }
}
